<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src=""></script>
    <script>
        function registerforAjax(){
            $.ajax({
              url:"register",
              success:function (result){
                  alert((JSON.parse(result)[0]["uname"])
              }
            });
        }

    </script>
</head>
<body>
<a href="register">同步请求</a>
<a href="javascript:registerforAjax()">异步请求</a>
<hr>
<div>
    <form>
    姓名：<input type="text" id="uname" name="uname" placeholder="请输入姓名:"><br>
    <input type="text" id="uname" name="uname" placeholder="qingshuruyonghuming:"><br>
    <input type="text" id="uname" name="uname" placeholder="qingshuruyonghuming:"><br>

    </form>
</div>
</body>
</html>